<template>
    <div>
        <table>
            <tr v-for="d in data">
                <td :style="d=='1111'?'color:red;':'color:green'">{{d}}</td>
            </tr>
        </table>
    </div>
</template>

<script setup lang="ts">
const data = (["1111","2222","3333","4444"])
</script>

<style scoped>

</style>